import { Controller, Get } from '@nestjs/common';
import { GoodsService } from './goods.service';

@Controller()
export class GoodsController {
  constructor(private readonly goodsService: GoodsService) {}

  @Get('goodsList')
  async getGoodsList(): Promise<string> {
    const result = await this.goodsService.findAll()
    return JSON.stringify(result);
  }
}
